﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 会员卡使用记录
    /// </summary>
    public class MbsCardRecord : BaseModel
    {
        [DataType(DataType.DateTime)]
        public DateTime TimeOfUsed { get; set; }

        /// <summary>
        /// 使用描述
        /// </summary>
        [StringLength(100)]
        public string Description { get; set; }

        public long MembershipCardId { get; set; }

        [ForeignKey("MembershipCardId")]
        public MembershipCard MembershipCard { get; set; }
    }
}